package com.cloudlead.commonData.vo;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.commonData.action.validator.TbProgressValidatorGroup.*;

import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.BelongsTos;
import com.cloudlead.common.lang.annotation.Domain;
import org.joda.time.DateTime;
import com.cloudlead.commonData.vo.TbContainerInfo;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;

/**
 * TbProgress is a Codegen vo type
 */
@Label("单箱节点表")
@BelongsTos(values = {
	@com.cloudlead.common.lang.annotation.BelongsTo(property="tbContainerInfo", rootField="tbContainerInfoId")
})
@Domain(domainClassName="com.cloudlead.commonData.entity.ETbProgress")
public class TbProgress extends AbstractIdEntity<String> {

    private static final long serialVersionUID =13155139791083L;    
    @Label("箱号")
    @Size(max=45)
    private String containerNo;

    @Label("删除标记")
    @Size(max=8)
    private String flag;

    @NotNull(groups={Update.class})
    @Label("id")
    @Size(max=24)
    private String id;

    @Label("节点内容")
    @Size(max=45)
    private String progressContent;

    @Label("节点时间")
    private DateTime progressTime;

    @NotNull(groups={Create.class,Update.class})
    @Label("tbContainerInfoId")
    private TbContainerInfo tbContainerInfo;

    @Label("操作员工")
    @Size(max=45)
    private String user;

    public String getContainerNo() {
        return containerNo;
    }

    public void setContainerNo(String containerNo) {
        this.containerNo = containerNo;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProgressContent() {
        return progressContent;
    }

    public void setProgressContent(String progressContent) {
        this.progressContent = progressContent;
    }

    public DateTime getProgressTime() {
        return progressTime;
    }

    public void setProgressTime(DateTime progressTime) {
        this.progressTime = progressTime;
    }

    public TbContainerInfo getTbContainerInfo() {
        return tbContainerInfo;
    }

    public void setTbContainerInfo(TbContainerInfo tbContainerInfo) {
        this.tbContainerInfo = tbContainerInfo;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String toString() {
         return String.format("TbProgress { containerNo : %s,flag : %s,id : %s,progressContent : %s,progressTime : %s,tbContainerInfo : %s,user : %s }",containerNo,flag,id,progressContent,progressTime,tbContainerInfo,user);
    }

}

